.class public Lcom/nemustech/regina/ResourceCare;
.super Ljava/lang/Object;
.source "ResourceCare.java"


# static fields
.field public static final LS_AM:I = 0x2

.field public static final LS_PM:I = 0x3

.field public static final LS_TODAY:I = 0x0

.field public static final LS_TOMORROW:I = 0x1

.field private static final TAG:Ljava/lang/String; = "ResourceCare"

.field private static mResourceCare:Lcom/nemustech/regina/ResourceCare;


# instance fields
.field private mContext:Landroid/content/Context;

.field private mRes:Landroid/content/res/Resources;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 10
    const/4 v0, 0x0

    sput-object v0, Lcom/nemustech/regina/ResourceCare;->mResourceCare:Lcom/nemustech/regina/ResourceCare;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 23
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    iput-object p1, p0, Lcom/nemustech/regina/ResourceCare;->mContext:Landroid/content/Context;

    .line 25
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    .line 26
    return-void
.end method

.method public static getLocale()Ljava/util/Locale;
    .locals 1

    .prologue
    .line 58
    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    return-object v0
.end method

.method public static getLocalizedString(I)Ljava/lang/String;
    .locals 1
    .parameter "stringID"

    .prologue
    .line 62
    const/4 v0, 0x0

    return-object v0
.end method

.method public static getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;
    .locals 2
    .parameter "context"

    .prologue
    .line 16
    sget-object v0, Lcom/nemustech/regina/ResourceCare;->mResourceCare:Lcom/nemustech/regina/ResourceCare;

    if-nez v0, :cond_0

    .line 17
    new-instance v0, Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ResourceCare;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/nemustech/regina/ResourceCare;->mResourceCare:Lcom/nemustech/regina/ResourceCare;

    .line 20
    :cond_0
    sget-object v0, Lcom/nemustech/regina/ResourceCare;->mResourceCare:Lcom/nemustech/regina/ResourceCare;

    return-object v0
.end method


# virtual methods
.method public getColor(I)I
    .locals 1
    .parameter "resource_id"

    .prologue
    .line 46
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    return v0
.end method

.method public getDimensionD(I)F
    .locals 2
    .parameter "resource_id"

    .prologue
    .line 42
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v0

    const/high16 v1, 0x447a

    div-float/2addr v0, v1

    return v0
.end method

.method public getDimensionF(I)F
    .locals 1
    .parameter "resource_id"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v0

    return v0
.end method

.method public getDimensionI(I)I
    .locals 2
    .parameter "resource_id"

    .prologue
    .line 34
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v0

    const/high16 v1, 0x3f00

    add-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method public getDrawable(I)Landroid/graphics/drawable/Drawable;
    .locals 1
    .parameter "resource_id"

    .prologue
    .line 54
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    return-object v0
.end method

.method public getString(I)Ljava/lang/String;
    .locals 1
    .parameter "resource_id"

    .prologue
    .line 50
    iget-object v0, p0, Lcom/nemustech/regina/ResourceCare;->mRes:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getWCBHeight()I
    .locals 2

    .prologue
    .line 30
    sget-object v0, Lcom/nemustech/regina/ResourceCare;->mResourceCare:Lcom/nemustech/regina/ResourceCare;

    const v1, 0x7f060014

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v0

    return v0
.end method
